//
//  MessageListViewModel.swift
//  swiftUIdemo
//
//  Created by Z.cy on 2025/1/10.
//

import Foundation
class MessageListViewModel: ObservableObject {
    @Published var messagePreviews: [MessagePreview] = []
    init() {
        loadPreviewMessages()
    }
    
    // from network call
    func loadPreviewMessages() {
        self.messagePreviews = MessagePreview.examples
    }
}
